package com.chris.entity;

import com.alibaba.fastjson.annotation.JSONField;

public class reader {
    @JSONField(name = "account")
    private String account;
    @JSONField(name = "password")
    private String password;
    @JSONField(name = "name")
    private String name;
    @JSONField(name = "age")
    private int age;
    @JSONField(name = "major")
    private String major;
    @JSONField(name = "grade")
    private int grade;
    @JSONField(name = "bookNum")
    private int bookNum;
    @JSONField(name = "sex")
    private String sex;

    public reader() {
    }

    @Override
    public String toString() {
        return "reader{" +
                "account='" + account + '\'' +
                ", password='" + password + '\'' +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", major='" + major + '\'' +
                ", grade=" + grade +
                ", bookNum=" + bookNum +
                ", sex='" + sex + '\'' +
                '}';
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public reader(String account, String password, String name, int age, String major, int grade, int bookNum, String sex) {
        this.account = account;
        this.password = password;
        this.name = name;
        this.age = age;
        this.major = major;
        this.grade = grade;
        this.bookNum = bookNum;
        this.sex = sex;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getMajor() {
        return major;
    }

    public void setMajor(String major) {
        this.major = major;
    }

    public int getGrade() {
        return grade;
    }

    public void setGrade(int grade) {
        this.grade = grade;
    }

    public int getBookNum() {
        return bookNum;
    }

    public void setBookNum(int bookNum) {
        this.bookNum = bookNum;
    }

    public reader(String account, String password, String name, int age, String major, int grade, int bookNum) {
        this.account = account;
        this.password = password;
        this.name = name;
        this.age = age;
        this.major = major;
        this.grade = grade;
        this.bookNum = bookNum;
    }
}
